package com.yupi.springbootinit.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yupi.springbootinit.common.DeleteRequest;
import com.yupi.springbootinit.model.dto.qa.QaAppearanceOptionAddRequest;
import com.yupi.springbootinit.model.dto.qa.QaAppearanceOptionQueryRequest;
import com.yupi.springbootinit.model.dto.qa.QaAppearanceOptionUpdateRequest;
import com.yupi.springbootinit.model.entity.QaAppearanceOption;

import java.util.List;

/**
* @author Administrator
* @description 针对表【qaAppearanceOption(外观检查下拉选项)】的数据库操作Service
* @createDate 2024-02-25 17:04:02
*/
public interface QaAppearanceOptionService extends IService<QaAppearanceOption> {

    /**
     * 添加
     *
     * @param qaAppearanceOptionAddRequest
     * @return
     */
    long addQaAppearanceOption(QaAppearanceOptionAddRequest qaAppearanceOptionAddRequest);

    /**
     * 删除
     *
     * @param deleteRequest
     * @return
     */
    boolean deleteQaAppearanceOption(DeleteRequest deleteRequest);

    /**
     * 更新
     *
     * @param qaAppearanceOptionUpdateRequest
     * @return
     */
    boolean updateQaAppearanceOption(QaAppearanceOptionUpdateRequest qaAppearanceOptionUpdateRequest);

    /**
     * 根据 id 获取
     *
     * @param id
     * @return
     */
    QaAppearanceOption getQaAppearanceOptionById(long id);

    /**
     * 获取列表
     *
     * @param qaAppearanceOptionQueryRequest
     * @return
     */
    List<QaAppearanceOption> listQaAppearanceOption(QaAppearanceOptionQueryRequest qaAppearanceOptionQueryRequest);

    /**
     * 分页获取列表
     *
     * @param qaAppearanceOptionQueryRequest
     * @return
     */
    Page<QaAppearanceOption> listQaAppearanceOptionByPage(QaAppearanceOptionQueryRequest qaAppearanceOptionQueryRequest);
}